﻿<!DOCTYPE html>
<html>
<head>
    <title>CGI</title>
</head>
<body>
    <h1>Our Page</h1>

    <script>
        //01
        var validateValues = function () {
            console.log(arguments.length);
        };
        validateValues(1, true, 'Settings');

        //02
        var validateValues = function () {
            console.log(arguments[0]);
        };
        validateValues(1, true, 'Settings');

        //03
        //write argument with new value before execute
        var validateValues = function () {
            arguments[0] = 9;
            console.log(arguments[0]);
        };
        validateValues(1, true, 'Settings');

    </script>
</body>
</html>